package com.shop.jpa.domain;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.List;

public class BasePage<T> extends PageImpl<T> {

    public BasePage(List content, Pageable pageable, long total) {
        super(content, pageable, total);
    }


    @JSONField(serialize = false)
    @Override
    public Pageable getPageable() {
        return super.getPageable();
    }

    @JSONField(serialize = false)
    @Override
    public Sort getSort() {
        return super.getSort();
    }
}
